import storage from "@/utils/storage";
import {
	http,
	Method
} from "@/utils/request.js";
/**
 * 获取天使合伙人汇率
 */
export function myExtension(params) {
	return http.request({
		url: "/partner",
		method: Method.GET,
		needToken: true,
		params,
	});
}
// 总收益、今日收益/partner/getSYWallet
export function getWallet(params) {
	return http.request({
		url: "/partner/getWallet",
		method: Method.GET,
		needToken: true,
		params,
	});
}
// 年收益
export function getYear(params) {
	return http.request({
		url: "/partner/getYear",
		method: Method.GET,
		needToken: true,
		params,
	});
}
// 月收益

export function monthData(params) {
	return http.request({
		url: "/partner/getMonth",
		method: Method.GET,
		needToken: true,
		params,
	});
}
// 日收益
export function getDate(params) {
	return http.request({
		url: "/partner/getDay",
		method: Method.GET,
		needToken: true,
		params,
	});
}
// 详情也
export function getList(params) {
	return http.request({
		url: "/partner/getList",
		method: Method.GET,
		needToken: true,
		params,
	});
}

// 会员收益列表
export function memberList(params) {
	return http.request({
		url: "/partner/code",
		method: Method.GET,
		needToken: true,
		params,
	});
}

// 我的收益列表
export function profitList(params) {
	return http.request({
		url: "/partner/profit",
		method: Method.GET,
		needToken: true,
		params,
	});
}

// 我的收益上边查询
export function getprofit(params) {
	return http.request({
		url: "/partner/getWallet",
		method: Method.GET,
		needToken: true,
		params,
	});
}

// 授权
export function getcertificate(params) {
	return http.request({
		url: "/partner/certificate",
		method: Method.GET,
		needToken: true,
		params,
	});
}

// 绑定提示
export function getunbind(params) {
	return http.request({
		url: "/partner/unbind",
		method: Method.GET,
		needToken: true,
		params,
	});
}
